/* 石油商城相关接口 */
import request from "@/utils/request.js";

/* 获取对应油站信息 */
export function getGasStation(data) {
	return request.get('GasStation/'+data );
}

/* 获取对应油枪信息 */
export function getOilGun(data) {
	return request.get('OilGun/S/'+data );
}

/* 获取油枪型号信息 */
export function getOilGun2(data) {
	return request.get('OilGun/Q/'+data );
}
/* 获取油品市场指导价 */
export function getOliProduct(data) {
	return request.get('OliProduct/P/'+data );
}
/* 获取油站评论 */
export function getComment(data) {
	return request.post('Comment/Q/PageList',data );
}
/* 添加油站评论 */
export function addComment(data) {
	return request.post('Comment',data );
}
// 获取当前油站平均分
export function getScore(data) {
	return request.get('Comment/Score/'+data );
}
// 获取当前油站标签统计
export function getCount(data) {
	return request.get('Comment/Count/'+data );
}

/* 加油币流水 列表查询 */
export function OilCoinFlowList(data) {
	return request.post('OilCoinFlow/pagelist',data );
}
// 加油币流水 详情
export function OilCoinFlowDetail(data) {
	return request.get('OilCoinFlow/'+data );
}
// 油币消费设置查询
export function OliCoinSell(data) {
	return request.get('OliCoinSell/'+data );
}

/* 油币账单 列表查询 */
export function OilObtainSummaryList(data) {
	return request.post('OilObtainSummary/PageList',data );
}
// 油币账单 详情
// export function OilObtainSummaryDetail(data) {
// 	return request.get('OilObtainSummary/'+data );
// }
// 用户油币账单 详情
export function UserOilObtainSummary(data) {
	return request.get('OilObtainSummary/U/'+data );
}

// 获取油站资质
export function getQualification(data) {
	return request.get('Qualification/C/'+data );
}

// 获取油币适配方案
export function getOliCoinSell(data,data2) {
	return request.get('OliCoinSell/Q/'+data+'/'+data2 );
}

/* 获取送货员评论 */
export function getRiderComment(data) {
	return request.post('DeliveryInfoComment/pagelist',data );
}
/* 添加送货员评论 */
export function addRiderComment(data) {
	return request.post('DeliveryInfoComment',data );
}
// 获取送货员评分
export function getRiderRate(data) {
	return request.get('DeliveryInfoComment/A/'+data);
}